import axios from './axios'

//管理员相关实现请求API

//分页获取用户信息
export const getAllUsers=(pageNum,pageSize)=>{
    return axios.request({
        url:'/user/getAllUsers?pageNum='+pageNum+'&pageSize='+pageSize,
        method:'post',
    })
}
//重置密码 用户ID+手机号后面六位
export const resetPassword=(id,password)=>{
    return axios.request({
        url:'/user/changePassword?id='+id+'&password='+password,
        method:'post',
    })
}
//删除学生根据ID
export const deleteById=(id)=>{
    return axios.request({
        url:'/user/deleteById?id='+id,
        method:'post',
    })
}

export const updateAuto=(user)=>{
    return axios.request({
        url:'/user/update',
        method:'post',
        data:user
    })
}
